<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>新增用户</title>	
<%@ include file="/common/common.jsp" %>
<script type="text/javascript">
function checkForm(){
	if($("#newPassword2").val()!=$("#newPassword").val()){
		alert("新密码与确认密码不一致，请重新输入");
		$("#newPassword2").focus();
		return false;
	}
	return true;
}

$(function(){
	$("#submitBtn").button();
	$("#backBtn" ).button({
		text: false,
		icons: {
			primary: "ui-icon-arrowreturnthick-1-w"
		}
	}).click(back);
});
</script>
</head>
<body>
<div id="formContainer" class="ui-widget-content ui-corner-all">
   	<div class="ui-widget-header ui-corner-top normalHeader">
   		<span class="normalTitle">密码修改</span>
   		<s:if test="%{decodeBackUrl!=null&&decodeBackUrl!=''}">
			<span class="headerSpanBtn" style="border: 0px solid">
				<button id="backBtn">返回</button>
			</span>
		</s:if>
   	</div>
	<s:form id="user" action="changePassword.do?backUrl=%{backUrl}" onsubmit="return checkForm();">
	<div id="err" style="color: red;"><s:property value="%{errorMsg}"/></div>
	<div id="succ" style="color: green;"><s:property value="%{successMsg}"/></div>
		<table class="normalTab">
			<tr>
				<td>
					原密码：
				</td>
				<td>
					<s:password id="oldPassword" name="oldPassword"/>
				</td>
			</tr>
			<tr>
				<td>
					新密码：
				</td>
				<td>
					<s:password id="newPassword" name="newPassword"/>
				</td>
			</tr>
			<tr>
				<td>
					确认密码：
				</td>
				<td>
					<s:password id="newPassword2"/>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<s:submit id="submitBtn" cssClass="normalBtn" value="确认"/>
				</td>
			</tr>
		</table>
		<page:context/>
	</s:form>
</div>
</body>
</html>